package com.cq.school.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: huke
 * Date: 13-12-24
 * Time: 上午12:09
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "pictures")
public class Pictures extends IdEntity {
    private long schoolId;
    private String url;

    private Date createTime;

    public long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(long schoolId) {
        this.schoolId = schoolId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(updatable = false)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
